/* 用户个人资料页专用样式 */

.profile-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* 个人资料头部 */
.profile-header {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  margin-bottom: 30px;
}

.profile-header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.profile-avatar-container {
  position: relative;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.avatar-change-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.avatar-change-btn:hover {
  background-color: #ff5722;
}

.profile-main-info {
  flex-grow: 1;
}

.profile-name {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 5px;
}

.profile-username {
  color: var(--text-light);
  margin-bottom: 15px;
}

.profile-bio {
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.6;
  max-width: 500px;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
}

.profile-actions {
  display: flex;
  gap: 15px;
}

/* 个人资料导航栏 */
.profile-nav {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.profile-nav-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-nav-inner::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.profile-nav-item {
  padding: 15px 25px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.profile-nav-item:hover {
  color: var(--primary-color);
}

.profile-nav-item.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* 个人资料内容区 */
.profile-content {
  min-height: 400px;
}

/* 我的游戏部分 */
.my-games-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.no-games-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.no-games-icon {
  font-size: 60px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.no-games-text {
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--text-color);
}

/* 管理游戏卡片样式 */
.manage-game-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  position: relative;
}

.game-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 12px;
  color: white;
}

.status-approved {
  background-color: var(--success-color);
}

.status-pending {
  background-color: var(--warning-color);
}

.status-rejected {
  background-color: var(--danger-color);
}

.manage-game-thumbnail {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.manage-game-info {
  padding: 15px;
}

.manage-game-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manage-game-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 10px;
}

.manage-game-actions {
  display: flex;
  gap: 10px;
}

.manage-game-actions button {
  flex: 1;
}

/* 编辑资料表单 */
.edit-profile-form {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-divider {
  margin: 30px 0;
  border-top: 1px solid var(--gray-color);
}

.form-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-color);
}

/* 收藏的游戏部分 */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.favorite-game-card {
  position: relative;
}

.remove-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--danger-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
}

.favorite-game-card:hover .remove-favorite {
  opacity: 1;
}

/* 我的评论部分 */
.my-comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.my-comment-item {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
}

.comment-game-info {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gray-color);
}

.comment-game-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.comment-date {
  font-size: 14px;
  color: var(--text-light);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .profile-stats {
    gap: 15px;
  }
  
  .my-games-section {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .profile-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-bio {
    margin-left: auto;
    margin-right: auto;
  }
  
  .profile-stats {
    justify-content: center;
  }
  
  .profile-actions {
    justify-content: center;
  }
  
  .profile-nav-item {
    padding: 15px 20px;
  }
}

@media (max-width: 576px) {
  .profile-container {
    margin: 20px auto;
  }
  
  .profile-header {
    padding: 20px;
  }
  
  .profile-name {
    font-size: 24px;
  }
  
  .my-games-section {
    grid-template-columns: 1fr;
  }
  
  .favorites-grid {
    grid-template-columns: 1fr;
  }
} 